package top.go2do.auth.business.role.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.go2do.auth.business.role.module.RolePO;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/3/17 10:21
 */
public interface RoleRepository extends JpaRepository<RolePO, Long>, JpaSpecificationExecutor<RolePO> {
    RolePO findByAppIdAndRoleCode(String appId, String code);

    RolePO findByAppIdAndRoleName(String appId, String name);
}
